package com.zmkj.cn.comm.exception;
/**
 * @author 伍绍宇 Coy
 */
public class BaseException extends RuntimeException {

    private String msg;

    private int code;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public BaseException(String message, String msg, int code) {
        super(message);
        this.msg = msg;
        this.code = code;
    }

    public BaseException(String message){
        super(message);
        this.msg=message;
        this.code=-1;
    }
}
